﻿namespace ui
{
    public class ParseResult
    {
        //压力计1-4
        public double Press1 { get; set; }
        public double Press2 { get; set; }
        public double Press3 { get; set; }
        public double Press4 { get; set; }
        //温度计1-3
        public double Temp1 { get; set; }
        public double Temp2 { get; set; }
        public double Temp3 { get; set; }
        //流量计
        public double FlowRt { get; set; }
        //ADC8
        public double Adc8 { get; set; }
        //高度计
        public double Height { get; set; }
        //转速1-4
        public double Speed1 { get; set; }
        public double Speed2 { get; set; }
        public double Speed3 { get; set; }
        public double Speed4 { get; set; }
        //扭矩1-4
        public double Torque1 { get; set; }
        public double Torque2 { get; set; }
        public double Torque3 { get; set; }
        public double Torque4 { get; set; }
        //状态1-4
        public double Status1 { get; set; }
        public double Status2 { get; set; }
        public double Status3 { get; set; }
        public double Status4 { get; set; }

        override public string ToString()
        {
            var rs = "";

            rs += Torque1.ToString("0.## ");
            rs += Torque2.ToString("0.## ");
            rs += Torque3.ToString("0.## ");
            rs += Torque4.ToString("0.## ");
            rs += Speed1.ToString("0.## ");
            rs += Speed2.ToString("0.## ");
            rs += Speed3.ToString("0.## ");
            rs += Speed4.ToString("0.## ");

            return rs;
        }
    }
}
